<{include file="section/admin/admin_header.tpl"}>
<body>
<{include file="section/admin/admin_header_login_bar.tpl"}>
<div id="contentA" class="clear" style="width:1300px;">
	<!--leftsidebar sr-->
	<{include file="section/admin/admin_left_sidebar.tpl"}>
    <!--/leftsidebar end-->
    <div class="rightCont">
    	<!--path st-->
        <div class="path">您的位置：<a href="/">首页</a>&gt; 商铺信息详情</div>
		<!--/path end-->
		
    	<h2 class="title01"><span>商铺信息详情</span></h2>
        <div class="line1"></div>
		<div class="boxform">
			<form action="/shop/modify" method="post" name="frm" id="frm">
			<input type="hidden" name="action" value=""/>
			<input type="hidden" name="shop_id" id="shop_id" value="<{$data.id}>"/>
			<input type="hidden" name="uid" id="uid" value="<{$data.uid}>"/>
            <ul class="clear">
            <li class="i1"><span class="red">*</span> 账　　号：</li>
            <li><span class="in"><a href="/member/detail/<{$data.uid}>" target="_blank"><{$data.passport}></a></span></li>
            </ul>
            <ul class="clear">
            <li class="i1"><span class="red">*</span> 商家名称：</li>
            <li><span class="in"><a href="<{$data.shop_link}>" target="_blank"><{$data.name}></a></span></li>
            </ul>
            <ul class="clear">
            <li class="i1"><span class="red">*</span> 商铺名称：</li>
            <li><span class="in"><input type="text" name="shop_name" id="shop_name" value="<{$data.shop_name}>" style="width:200px;"/></span></li> 
			</ul>
            <ul class="clear" >
            <li class="i1">商铺logo：</li>
            <li><{if $data.logo}><a href="<{$data.logo.img_url}>" target="_blank"><img src="<{$data.logo.img_url}>" width="200" height="100" /></a><{/if}></li>
            </ul>
			<ul class="clear">
            <li class="i1">商铺类型：</li>
            <li><span class="in"><{$data.shop_type_name}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">主营行业：</li>
            <li><span class="in"><{$data.major_category}></span></li>
            </ul>
            <ul class="clear">
            <li class="i1">主营业务：</li>
            <li><span class="in"><{$data.major_business}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">企业运营资质：</li>
            <li><{if $data.license.img_url}><a href="<{$data.license.img_url}>" target="_blank"><img src="<{$data.license.img_url}>" width="200" height="100" /></a><{else}><{/if}></li>
            </ul>
			<ul class="clear">
            <li class="i1">品牌资质：</li>
            <li><{if $data.brand}>
				<{foreach from=$data.brand key=key item=brand}>
					<a href="<{$brand.img_url}>" target="_blank"><img src="<{$brand.img_url}>" width="200" height="100" /></a>
				<{/foreach}>
			<{/if}></li>
            </ul>
			<ul class="clear">
            <li class="i1">商铺简介：</li>
            <li><{$data.introduce}></li>
            </ul>
			<ul class="clear">
            <li class="i1">支付用户：</li>
            <li><span class="in"><{$data.alipay_user}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">支付帐号：</li>
            <li><span class="in"><input type="text" name="alipay_account" id="alipay_account" value="<{$data.alipay_account}>" style="width:200px;"/> &nbsp;&nbsp;<div class="alipay_account_tip" style="color:red;"></div>注：支持手机号和邮箱两种格式！</span></li>
            </ul>
			<ul class="clear">
            <li class="i1">省：</li>
            <li><span class="in"><{$data.province_name}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">市：</li>
            <li><span class="in"><{$data.city_name}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">地址：</li>
            <li><span class="in"><{$data.address}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">手机：</li>
            <li><span class="in"><{$data.mobile}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">邮箱：</li>
            <li><span class="in"><{$data.email}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">申请时间：</li>
            <li><span class="in"><{$data.apply_time}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">审核通过时间：</li>
            <li><span class="in"><{$data.update_time}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">商铺地址：</li>
            <li><span class="in"><a href="<{$data.shop_link}>" target="_blank"><{$data.shop_link}></a></span></li>
            </ul>

			<div class="line margin25"></div>
            <ul class="clear">
            <li class="i1">&nbsp;</li>
            </ul>
			<ul class="clear">
            <li class="i1">&nbsp;</li>
            <li>
            	<input type="button" value="提　交" class="btn04" name="sure" onclick="check_form();">　<input type="reset" value="取　消" class="btn04">
            </li>
            </ul>
			</form>
        </div>
        
    </div>
</div>
</body>
<script>

function check_form()
{
    var account = $('#alipay_account').val();

	var s_name  = $('#shop_name').val();
	
	var mail    = /^.+@.+$/;

	var mobile  = /^[0-9]{11}$/;

	if(s_name.length > 12)
	{
		alert('商铺名称超过12个字了， 请修改！');

		return false;
	}

	if (! mail.test(account) && ! mobile.test(account))

	{

		$('.alipay_account_tip').html(' 支付宝帐户格式错误！');

		return false;

	}

	$('#frm').submit();
}
</script>
</html>
